package com.sxhalo.fsms.mapper;

import com.sxhalo.fsms.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface TransducerRunningDataMapper {
    int deleteByPrimaryKey(TransducerRunningDataKey key);

    int insert(TransducerRunningData record);

    int insertSelective(TransducerRunningData record);

    TransducerRunningData selectByPrimaryKey(TransducerRunningDataKey key);

    int updateByPrimaryKeySelective(TransducerRunningData record);

    int updateByPrimaryKey(TransducerRunningData record);

    List<TransducerRunningData> findPhaseHis(@Param("where")String where);
    //int batchInsert(@Param("list") List<TransducerRunningData> list);

    Integer batchInsert(@Param("list")List<RedisData> list);
    List<HashMap> findAttrHis(@Param("attr")String  attr, @Param("where")String   where);

    int getCount(@Param("where")String where);

    List<TransducerRunningData> findWhereList(@Param("where")String where, @Param("order")String order);

    List<TransducerRunningData> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);

    TransducerRunningData findLastData(@Param("deviceId") Integer deviceId);

}